Repository navigation
feat(desktop): explain why automatic work did not start in inbox activity - #107913
posthog[bot] wants to merge 1 commit into
Conversation
…vity Desktop showed autostart_skip activity rows as an unknown type with no preview. Normalize the payload and render "Work not started" with the reason, the detail, and an in-app link to the related report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Generated-By: PostHog Desktop Task-Id: 8276e6c7-677c-4a78-8eb9-11956e924d80
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
🤖 CI report✅ Trunk lane — non-backend lane (
|
| File | Comment lines | Added lines |
|---|---|---|
products/desktop/packages/shared/src/domain-types.ts |
6 | 27 |
This check does not block merging. It updates on every push and clears when the share drops.
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 📝 WalkthroughWalkthroughThe API client now validates and normalizes Priority: ⬇️ Low Merge Risk: 🔵 Low · up to The new inbox entry needs a component replacement to meet desktop UI requirements. No functional failure was established, so the remaining merge risk is bounded. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The new related-report action uses the existing report-opening flow, which checks access before navigating. No security issue was established, although the server-side authorization behind that check was not independently verified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: PostHog/posthog/.coderabbit.yaml
Review profile: QUIET
Plan: Enterprise
Run ID: 0e05f1d9-1826-4c31-a733-9016cd6f33c7
📒 Files selected for processing (5)
products/desktop/packages/api-client/src/posthog-client.test.tsproducts/desktop/packages/api-client/src/posthog-client.tsproducts/desktop/packages/shared/src/domain-types.tsproducts/desktop/packages/ui/src/features/inbox/components/detail/ArtefactLogList.test.tsxproducts/desktop/packages/ui/src/features/inbox/components/detail/ArtefactLogList.tsx
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 4 remain after this review.
| <Flex direction="column" gap="1"> | ||
| <Flex align="center" gap="2" wrap="wrap"> | ||
| <Badge color="gray" variant="soft"> |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
rg -n 'Radix|UI Components|@posthog/quill' products/desktop/AGENTS.md products/desktop/packages/ui/AGENTS.md products/desktop/.storybook/AGENTS.md
sed -n '1,35p' products/desktop/packages/ui/src/features/inbox/components/detail/ArtefactLogList.tsx
sed -n '240,275p' products/desktop/packages/ui/src/features/inbox/components/detail/ArtefactLogList.tsxRepository: PostHog/posthog
Length of output: 6619
Replace the new Radix components.
products/desktop/AGENTS.md bans Radix components in desktop code, not only in Storybook. Replace the new Flex and Badge usage in AutostartSkipBody with @posthog/quill components or div elements with Tailwind classes.
HostHog preview —
|
|
This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, please remove the |
|
This PR was closed due to lack of activity. Feel free to reopen if it's still relevant. |
Problem
autostart_skipactivity record and the web Inbox view for it. Desktop did not follow.autostart_skip. The row fell to the generic fallback, which reads onlycontent.content, so the row showed the raw type name and "No preview available."Origin
Changes
useOpenInboxReportflow.autostart_skiprows into a typed artefact. A row with an unknownskip_reasonstill falls back to the degraded preview.How did you test this code?
ArtefactLogList.test.tsx: each of the three reasons shows the title, the reason label and the detail, and does not show "No preview available." Clicking the link opens the linked report id. Before this change the row rendered as an unknown type.posthog-client.test.ts: anautostart_skiprow joins the "normalizes every backend artefact type without dropping rows" fixture, so it must stay a typed, non-degraded row.packages/uiinbox detail andpackages/api-client,tsc --noEmitforshared,api-clientandui, and Biome.Release status
Automatic notifications
Docs update
None.
🤖 Agent context
Autonomy: Fully autonomous
Agent: PostHog Desktop cloud task, Claude Code, Opus 5.5 (
claude-opus-5-5)previous_report_idwhen the linked report opens.autostart_skipin Desktop.Created with PostHog Desktop from this inbox report.
🤖 Generated with Claude Code